package com.example.service1.config;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

//开启服务注册与发现功能。其实@enable注解都会有@import，跟写spring.factories文件的EnableAutoConfiguration一样的原理。
@EnableDiscoveryClient
@SpringBootApplication
public class Service1ConfigApplication {

    public static void main(String[] args) {
        SpringApplication.run(Service1ConfigApplication.class, args);
    }

}
